package com.jiantong.work.service;

import com.jiantong.work.model.Harmless;
import io.terminus.common.model.Response;

import java.util.Map;

/**
 * Created by niufei on 2017/3/25.
 *
 */
public interface HarmlessWriteService {

    /**
     * 更新无害化的数据
     * @param harmless 无害化单据对象
     * @param toStatus 到状态
     * @return Map<String , Object>
     */
    Response<Map<String , Object>> updateHarmless(Harmless harmless , Integer toStatus);

    /**
     * 创建无害化单据
     * @param harmless 无害化单据对象
     * @return id
     */
    Long createHarmless(Harmless harmless);

    Boolean update (Harmless harmless);
}
